/**
 * Created by IntelliJ IDEA.
 * User: LiuWenqi
 * Date: 2017-12-08
 * Time: 17:16
 * Description:
 */
package com.example.layui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @tanyuehao
 */
@Controller
@RequestMapping("/system")
public class SystemController {
    /**
     * to系统资源管理
     * @return
     */
    @RequestMapping("/toSystemRegister")
    public String systemRegister() {
        return "system/systemRegister";
    }
    /**
     * to系统资源管理
     * @return
     */
    @RequestMapping("/toSystemResource")
    public String systemResourceManage() {
        return "system/systemResource";
    }

    @RequestMapping("/xinzeng")
    public String xinzeng(){
        return "system/one";
    }
    @RequestMapping("/data")
    @ResponseBody
    public String data(){
        return " {\"total\":28,\"rows\":[\n" +
                "      {\n" +
                "        \"id\": 1,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 2,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 3,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 4,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 5,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 6,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 7,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 8,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 9,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 10,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 11,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 12,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 13,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 14,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      },{\n" +
                "        \"id\": 15,\n" +
                "        \"mark\": \"user-0\",\n" +
                "        \"name\": \"女\",\n" +
                "        \"state\": \"城市-0\"\n" +
                "      }\n" +
                "    ]\n" +
                "  }";
    }
}

